<?php
namespace Web\Controller;
class ArticleController extends CommonController {
    /**
     * 文章详情页面
     *
     * @param    void
     * @return    void
    **/
    public function index(){
        $id = I('get.id');
        verify($id,'notEmpty','文章ID为空');

        $ArticleModel = D('Article');
        $articleInfo = $ArticleModel->find($id);
        verify($id,'notEmpty','文章不存在');

        $this->assign(array(
            'articleInfo'   =>  $articleInfo,
        ));
        $this->display();
    }
}
